package com.dtguai.app.service;

import com.dtguai.app.model.Es;
import com.dtguai.app.model.EsOperationsModel;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * 描述
 *
 * @author guo
 * @date 2020/7/13 14:32
 */
public interface EsOperationsSevice extends ElasticsearchRepository<EsOperationsModel, Integer> {

    /**
     * 自定义
     *
     * @return List<Es>
     */
    List<Es> findByNameAndAge(String name, Integer age);

    List<Es> findByNameOrAge(String name, Integer age);

    long countByTitle(String title);

}
